gdkwindow: Squash a leak in the subsurface case
authorJasper St. Pierre <jstpierre@mecheye.net>
Sat, 21 Jun 2014 00:47:59 +0000 (20:47 -0400)
committerJasper St. Pierre <jstpierre@mecheye.net>
Sat, 21 Jun 2014 00:48:21 +0000 (20:48 -0400)
commit60d39e973a60baaae210be36135cc478dc2c0a96
tree89c0674652dfafc682e480c59ee0e8405197e234
parentd619a78aeb5198af30001bc715fc5d8b732d6420
gdkwindow: Squash a leak in the subsurface case

cairo_surface_create_for_rectangle takes a ref on the parent surface,
so we need to drop ours.

Rename get_window_surface to ref_window_surface to make the code more
clear and to stop this error from happening again.
gdk/gdkwindow.c